<template>
	<view class="container">
		<view class="tui-flex">
			<view class="tui-cube-box">
				<view class="tui-cube tui-cube-1">小猪趣聚</view>
				<view class="tui-cube tui-cube-2">小猪趣聚</view>
				<view class="tui-cube tui-cube-3">小猪趣聚</view>
				<view class="tui-cube tui-cube-4">小猪趣聚</view>
				<view class="tui-cube tui-cube-5">小猪趣聚</view>
				<view class="tui-cube tui-cube-6">小猪趣聚</view>
			</view>
		</view>
		<view class="tui-content-box">
			<view class="tui-content">『小猪趣聚』让每一次聚会都充满乐趣！</view>
			<!-- <view class="tui-content">珠海畅聚网络科技有限公司-出品</view> -->
			<view class="tui-content">您可以通过反馈或者以下方式联系我们！</view>
			<view class="tui-content tui-content-email" @tap="copy('1062884167@qq.com')">邮箱：513703897@qq.com</view>
			<view class="tui-content tui-content-email" @tap="copy('176410126')">QQ交流群：176410126</view>
			<!-- 			<view class="tui-footer">
				<image src='../../static/images/my/applets.jpg' class="tui-applets" mode="widthFix"></image>
				<view class="tui-footer-text">扫描二维码，联系我们！</view>
			</view> -->
		</view>

		<view class="tui-content-box margin-top-30">
			<view style="font-size: 38rpx; font-weight: bold;">商户合作：</view>
			<view class="tui-content">发现更多好玩好吃的，请联系平台运营方，谢谢您的合作！</view>
			<!-- 			<view class="tui-footer">
				<view class="tui-footer-text">
					发现更多好玩好吃的，请联系平台运营方，微信david6698，谢谢您的合作！
				</view>
			</view> -->
			<view class="tui-content tui-content-email" @tap="copy('513703897@qq.com')">合作邮箱：513703897@qq.com</view>
			<view class="tui-content tui-content-email" @tap="copy('david6698')">合作微信：david6698</view>
		</view>
		
	</view>
</template>

<script>
import { mapState } from 'vuex';
export default {
	computed: mapState(['version']),
	data() {
		return {};
	},
	onLoad(e) {
		if(e.title){
			uni.setNavigationBarTitle({
				title:e.title
			})
		}
	},
	methods: {
		copy: function(text) {
			const that = this;
			uni.setClipboardData({
				data: text,
				success(res) {
					uni.getClipboardData({
						success(res) {
							//that.tui.toast("邮箱已复制", 2000, true)
						}
					});
				}
			});
		},
		log: function() {
			uni.navigateTo({
				url: '../log/log'
			});
		}
	}
};
</script>

<style>
.container {
	padding: 0 50rpx 40rpx 50rpx;
	box-sizing: border-box;
}

.tui-flex {
	display: flex;
	align-items: center;
	justify-content: center;
	padding-top: 40px;
}

.tui-cube-box {
	width: 60px;
	height: 60px;
	position: relative;
	-webkit-transform-style: preserve-3d;
	transform-style: preserve-3d;
	animation: tui-go 4s linear infinite;
}

@keyframes tui-go {
	0% {
		-webkit-transform: rotateX(0) rotateY(0);
		transform: rotateX(0) rotateY(0);
	}

	100% {
		-webkit-transform: rotateX(360deg) rotateY(360deg);
		transform: rotateX(360deg) rotateY(360deg);
	}
}

.tui-cube {
	width: 60px;
	height: 60px;
	position: absolute;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 5px;
	box-sizing: border-box;
	font-size: 24rpx;
	color: #fff;
	text-align: center;
	word-break: break-all;
	word-wrap: break-word;
}

.tui-cube-1 {
	background: #fff;
	-webkit-transform: rotateY(90deg) translateZ(-30px);
	transform: rotateY(90deg) translateZ(-30px);
	color: #333 !important;
}

.tui-cube-2 {
	background: #8a5966;
	-webkit-transform: rotateY(90deg) translateZ(30px);
	transform: rotateY(90deg) translateZ(30px);
}

.tui-cube-3 {
	background: linear-gradient(-90deg, #5677fc, #5c8dff);
	-webkit-transform: rotateX(90deg) translateZ(30px);
	transform: rotateX(90deg) translateZ(30px);
}

.tui-cube-4 {
	background: #ed3f14;
	-webkit-transform: rotateX(90deg) translateZ(-30px);
	transform: rotateX(90deg) translateZ(-30px);
}

.tui-cube-5 {
	background: #ff7900;
	-webkit-transform: translateZ(30px);
	transform: translateZ(30px);
}

.tui-cube-6 {
	background: #19be6b;
	-webkit-transform: translateZ(-30px);
	transform: translateZ(-30px);
}

.tui-content-box {
	width: 100%;
	margin-top: 50px;
	padding: 30rpx;
	box-sizing: border-box;
	background: #fff;
	border-radius: 10rpx;
	box-shadow: 0 0 10rpx #eee;
}

.margin-top-30{
	margin-top: 20px !important;
}

.tui-content {
	color: #333;
	font-size: 30rpx;
	line-height: 44rpx;
	padding: 10rpx 0;
	text-align: justify;
}

.tui-content-email {
	color: #5677fc !important;
}

.tui-footer {
	display: flex;
	align-items: center;
	padding-top: 30rpx;
}

.tui-applets {
	width: 80px;
	height: 80px;
	display: block;
}

.tui-footer-text {
	font-size: 24rpx;
	color: #999;
	padding-left: 20rpx;
	width: 300rpx;
}
</style>
